package com.ruoyi.blog.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 tb_blog_comment
 * 
 * @author ruoyi
 * @date 2024-03-08
 */
public class TbBlogComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String commentId;

    /** 关联的blog主键 */
    @Excel(name = "关联的blog主键")
    private String blogId;

    /** 评论者名称 */
    @Excel(name = "评论者名称")
    private String commentator;

    /** 评论人的邮箱 */
    @Excel(name = "评论人的邮箱")
    private String email;

    /** 网址 */
    @Excel(name = "网址")
    private String websiteUrl;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentBody;

    /** 评论提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentCreateTime;

    /** 评论时的ip地址 */
    @Excel(name = "评论时的ip地址")
    private String commentatorIp;

    /** 回复内容 */
    @Excel(name = "回复内容")
    private String replyBody;

    /** 回复时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date replyCreateTime;

    /** 是否审核通过 0-未审核 1-审核通过 */
    @Excel(name = "是否审核通过 0-未审核 1-审核通过")
    private Long commentStatus;

    /** 是否删除 0-未删除 1-已删除 */
    @Excel(name = "是否删除 0-未删除 1-已删除")
    private Long isDeleted;

    public void setCommentId(String commentId) 
    {
        this.commentId = commentId;
    }

    public String getCommentId() 
    {
        return commentId;
    }
    public void setBlogId(String blogId) 
    {
        this.blogId = blogId;
    }

    public String getBlogId() 
    {
        return blogId;
    }
    public void setCommentator(String commentator) 
    {
        this.commentator = commentator;
    }

    public String getCommentator() 
    {
        return commentator;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setWebsiteUrl(String websiteUrl) 
    {
        this.websiteUrl = websiteUrl;
    }

    public String getWebsiteUrl() 
    {
        return websiteUrl;
    }
    public void setCommentBody(String commentBody) 
    {
        this.commentBody = commentBody;
    }

    public String getCommentBody() 
    {
        return commentBody;
    }
    public void setCommentCreateTime(Date commentCreateTime) 
    {
        this.commentCreateTime = commentCreateTime;
    }

    public Date getCommentCreateTime() 
    {
        return commentCreateTime;
    }
    public void setCommentatorIp(String commentatorIp) 
    {
        this.commentatorIp = commentatorIp;
    }

    public String getCommentatorIp() 
    {
        return commentatorIp;
    }
    public void setReplyBody(String replyBody) 
    {
        this.replyBody = replyBody;
    }

    public String getReplyBody() 
    {
        return replyBody;
    }
    public void setReplyCreateTime(Date replyCreateTime) 
    {
        this.replyCreateTime = replyCreateTime;
    }

    public Date getReplyCreateTime() 
    {
        return replyCreateTime;
    }
    public void setCommentStatus(Long commentStatus) 
    {
        this.commentStatus = commentStatus;
    }

    public Long getCommentStatus() 
    {
        return commentStatus;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("blogId", getBlogId())
            .append("commentator", getCommentator())
            .append("email", getEmail())
            .append("websiteUrl", getWebsiteUrl())
            .append("commentBody", getCommentBody())
            .append("commentCreateTime", getCommentCreateTime())
            .append("commentatorIp", getCommentatorIp())
            .append("replyBody", getReplyBody())
            .append("replyCreateTime", getReplyCreateTime())
            .append("commentStatus", getCommentStatus())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
